#region head comment
/*
Code generate by YhdSdkTool.
email:starpeng@vip.qq.com
2013-01-21 23:00:57:788 +08:00
*/
#endregion

using System;
using System.Xml.Serialization;
using System.Collections.Generic;

namespace YhdSdk.Domain.Group
{
    /// <summary>
    /// 团购报名信息
    /// </summary>
    [Serializable]
    public class GroupProdInfo : YhdObject
    {
        /// <summary>
        /// 1号商城产品ID
        /// </summary>
        [XmlElement("productId")]
        public Nullable<Int64> ProductId
        {
            get;
            set;
        }

        /// <summary>
        /// 团购ID
        /// </summary>
        [XmlElement("groupId")]
        public Nullable<Int64> GroupId
        {
            get;
            set;
        }

        /// <summary>
        /// 团购产品名称
        /// </summary>
        [XmlElement("groupCname")]
        public String GroupCname
        {
            get;
            set;
        }

        /// <summary>
        /// 团购价格
        /// </summary>
        [XmlElement("groupPrice")]
        public Nullable<Double> GroupPrice
        {
            get;
            set;
        }

        /// <summary>
        /// 团购购买数量下限
        /// </summary>
        [XmlElement("minStockNum")]
        public Nullable<Int32> MinStockNum
        {
            get;
            set;
        }

        /// <summary>
        /// 团购购买数量上限
        /// </summary>
        [XmlElement("maxStockNum")]
        public Nullable<Int32> MaxStockNum
        {
            get;
            set;
        }

        /// <summary>
        /// 每人购买数量下限
        /// </summary>
        [XmlElement("minGroupNum")]
        public Nullable<Int32> MinGroupNum
        {
            get;
            set;
        }

        /// <summary>
        /// 每人购买数量上限
        /// </summary>
        [XmlElement("maxGroupNum")]
        public Nullable<Int32> MaxGroupNum
        {
            get;
            set;
        }

        /// <summary>
        /// 团购预告开始时间
        /// </summary>
        [XmlElement("prepareTime")]
        public Nullable<DateTime> PrepareTime
        {
            get;
            set;
        }

        /// <summary>
        /// 团购开始时间
        /// </summary>
        [XmlElement("startTime")]
        public Nullable<DateTime> StartTime
        {
            get;
            set;
        }

        /// <summary>
        /// 团购结束时间
        /// </summary>
        [XmlElement("endTime")]
        public Nullable<DateTime> EndTime
        {
            get;
            set;
        }

        /// <summary>
        /// 活动地区(销售地区,逗号分隔)
        /// </summary>
        [XmlArray("saleAreaId")]
        [XmlArrayItem("int32")]
        public List<Int32> SaleAreaId
        {
            get;
            set;
        }

        /// <summary>
        /// 团购状态(WAIT_VERIFYING:待审核;VERIFY_REFUESD:审核拒绝;VERIFY_PASSED:审核通过;GROUPON:团购中;
        ///<para>GROUPON_SUCCESS:团购中-成功;GROUPON_FULLED:团购中-人数满;FINISHED_FAILUE:结束-失败;FINISHED_SUCCESS:结束-成功;GROUP_FINISHED:处理完毕)</para>
        /// </summary>
        [XmlElement("groupStatus")]
        public String GroupStatus
        {
            get;
            set;
        }

        /// <summary>
        /// 团购销售数量
        /// </summary>
        [XmlElement("groupSaleNum")]
        public Nullable<Int32> GroupSaleNum
        {
            get;
            set;
        }

    }
}
